﻿<?php
    session_start();
    if($_SESSION['sjh'])
    {
        require ('quanju.php');
        $lj = '';
        $result = $conn->query("SELECT * FROM hg002 WHERE sjh='" . $_SESSION['sjh'] .
            "'");
    
        $conn->close();
        if ($result) {
            if ($row = mysqli_fetch_array($result)) {
                $lj = $row['imglj'];
                $dlj = $row['imglj2'];
            }
        }
    }else if($_GET['sjh']){
        require ('../quanju.php');
        $lj = '';
        $result = $conn->query("SELECT * FROM hg002 WHERE sjh='" . $_GET['sjh'] .
            "'");
    
        $conn->close();
        if ($result) {
            if ($row = mysqli_fetch_array($result)) {
                $lj = $row['imglj'];
            }
        }
        Header("Location:images?url=".$lj);
        exit;
    }
?>
<!DOCTYPE html>
  <html>
    
    <head>
      <title>
        002
      </title>
      <meta charset="utf-8" />
      <meta name="format-detection" content="telephone=no" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
      <meta name="apple-mobile-web-app-capable" content="yes" />
      <meta name="apple-touch-fullscreen" content="yes" />
      <meta http-equiv="Access-Control-Allow-Origin" content="*" />
    </head>
    <body style="text-align: center;">
        <a style="font-size:32px;" href="javaScript:void(0);" onclick="history.back();">返回</a>
        <br />
        注意表演完，断开连接
        <br />
        <a style="font-size:20px;" href="http://image.baidu.com/search/wiseala<?php echo $dlj; ?>">跟踪进入</a>
        <br />
        <img src="<?php echo 'images?url='.$lj; ?>" />
    </body>
  </html>